package com.ruoyi.goods.GoodsStore.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.goods.GoodsStore.domain.GoodsCategory;
import org.apache.ibatis.annotations.Param;

/**
 * 物品分类信息Mapper接口
 *
 * @author yl
 * @date 2022-11-27
 */
public interface GoodsCategoryMapper extends BaseMapper<GoodsCategory> {

    /**
     * 查询物品分类信息列表
     *
     * @param goodsCategory 物品分类信息
     * @return 物品分类信息集合
     */
    public List<GoodsCategory> selectGoodsCategoryList(GoodsCategory goodsCategory);

    List<GoodsCategory> selectTree();

    GoodsCategory categoryById(Long id);

    List<GoodsCategory> childrenList(Long id);

    void updateByCategory(GoodsCategory goodsCategory);

    List<GoodsCategory> selectAllChildren(Long id);

    List<GoodsCategory> selectChildren(Long id);
}
